<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"  
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<ui:composition>

	<h:panelGrid columns="4">
		<c:if test="#{pManagedBean.tipoOperacao != 'DETALHANDO'}">

			<p:commandButton ajax="false" id="btnSalvarESair"
				action="#{pManagedBean.doSalvarESair}" value="#{i18n.btnSalvarSair}"
				update="msgs,form" />

			<p:commandButton ajax="false" id="btnCancelar"
				action="#{pManagedBean.doCancelar}" value="#{i18n.btnCancelar}"
				immediate="true" />
		</c:if>
		<c:if test="#{pManagedBean.tipoOperacao == 'DETALHANDO'}">
			<p:commandButton ajax="false" id="btnVoltar"
				action="#{pManagedBean.doVoltar}" value="#{i18n.btnVoltar}"
				immediate="true" />
		</c:if>
	</h:panelGrid>

</ui:composition>

</html>